#!/bin/bash
export PATH=$PATH:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/system:/cygdrive/c/Python25:/cygdrive/c/Python25/DLLs

python setversion.py choose
rm -rf dist
rm -rf build
rm -rf Output
python setup.py py2exe  --packages encodings
cp /cygdrive/c/windows/system32/msvcr71.dll /cygdrive/c/opendev/dist/.
cp opendev.exe.manifest /cygdrive/c/opendev/dist/.
"/cygdrive/c/Program Files\Inno Setup 5\ISCC.exe" "c:\opendev\opendev.iss"
scp Output/* peach.etelos.com:.
ssh peach.etelos.com "chmod ugo+r opendev*"
ssh peach.etelos.com "sudo scp opendev*.exe corp:/var/www/v3.etelos.com/opendev/."
ssh peach.etelos.com "rm opendev*.exe"
